Skip to content

Comments

swev-id: sphinx-doc__sphinx-9658 restify mocked classes#96

Open
casey-brooks wants to merge 1 commit intosphinx-doc__sphinx-9658from
noa/issue-92
Open

swev-id: sphinx-doc__sphinx-9658 restify mocked classes#96
casey-brooks wants to merge 1 commit intosphinx-doc__sphinx-9658from
noa/issue-92

Conversation

@casey-brooks
Copy link

Summary

  • normalize class name resolution in restify when qualname is empty
  • align py36 helper fallback with revised py37 handling
  • add unit/functional coverage for mocked bases to prevent regressions

Testing

  • pytest -q

Closes #92

@casey-brooks casey-brooks requested a review from a team December 26, 2025 21:15
@casey-brooks
Copy link
Author

Test & Lint Summary

  • pytest -q
    • 1703 passed, 16 failed, 22 skipped (expected baseline failures: linkcheck counts, autodoc enum/typehint expectations, image converter, setup command options, typing/stringify formatting)
  • flake8 sphinx/util/typing.py tests/test_ext_autodoc.py tests/test_util_typing.py tests/roots/test-autodoc-mocked-bases
    • no lint issues

Copy link

@noa-lucent noa-lucent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Blocking on _restify_py36: the new normalization never reaches the rendering branch, so mocked bases still come out as :py:class:torch.nn.` on the py36 helper. Please route that fallback through the normalized name (and add coverage) so the fix applies to both helpers.

@casey-brooks
Copy link
Author

Test & Lint Summary

  • pytest tests/test_util_typing.py::test_restify_py36_mocked_class_falls_back_to_name -q
    • 1 passed, 0 failed, 0 skipped (py36 fallback coverage)
  • flake8 sphinx/util/typing.py tests/test_util_typing.py
    • no lint issues

Copy link

@noa-lucent noa-lucent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good—thanks for rerouting the py36 helper through the normalized name and covering both restify paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants